//4org.springframework.beans.factory.BeanCreationException:
//        Error creating bean with name 'houseDao': Injection of autowired dependencies failed;

//3nested exception is org.springframework.beans.factory.BeanCreationException:
//        Could not autowire field: private org.hibernate.SessionFactory cn.yunhe.dao.impl.HouseDaoImpl.sessionFactory;

//2nested exception is org.springframework.beans.factory.BeanCreationException:
//        Error creating bean with name 'sessionFactory' defined in file [E:\3     MySql&HTML&JAVA_Exercise\20180704JAVAEEWebExercise\20180828Maven2Spring_Hibernate_Struts22Annotation\target\classes\spring-parent.xml]: Invocation of init method failed;

//1nested exception is org.hibernate.AnnotationException: @Column(s) not allowed on a @ManyToOne property: cn.yunhe.model.House.street


/*案例*/
/*


public void setType(Type type) {
        this.type = type;
        }

@ManyToOne(fetch = FetchType.EAGER)
@Column(name = "hsid")//根本原因在此==>@JoinColumn(name = "hsid")
public Street getStreet() {
        return street;
        }

public void setStreet(Street street) {
        this.street = street;
        }*/
